const state = {
    controls: []
};

const mutations = {
    controls(state,value){
        localStorage.setItem("decorate_controls", JSON.stringify(value));
        state.controls = JSON.parse(JSON.stringify(value));
    }
}

const actions = {
    controls({commit}, data) {
        commit("controls", data);
    }
}

export default {
    state,
    mutations,
    actions
  }
  